import React, {Component} from 'react'
export default class Loading extends Component {
    render(){
        const {isShow} = this.props
        return (
            <div>
                { isShow && 
                    <div className="mask">
                        <div className="spinner"></div>
                    </div>
                }
            </div>
        )
    }
}

Loading.defaultProps = {
    isShow:false
}